package com.caizongzhen.www.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caizongzhen.www.entity.FeedBack;
import com.caizongzhen.www.mapper.FeedBackMapper;
import org.springframework.stereotype.Service;


@Service
public class FeedBackService extends ServiceImpl<FeedBackMapper, FeedBack> {

    public IPage<FeedBack> getFeedBackPageDate(Integer currentPage, Integer pageSize){
        Page<FeedBack> feedBackPage = new Page<FeedBack>(currentPage,pageSize);
        IPage<FeedBack> feedBackPage1 =this.page(feedBackPage);
        return feedBackPage1;
    }
}
